﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="InBox.aspx.cs" Inherits="MBox_InBox" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/f_css.css" rel="stylesheet" type="text/css" />
    <link href="../css/listpage.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="../js/jquery-1.2.6.pack.js"></script>
    <script language="javascript" src="../js/subMsg.js" type="text/javascript"></script>
    <script language="javascript" src="../js/qmailDataGrid.js" type="text/javascript"></script>
    <script language="javascript" src="../js/common.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        createQMailObj("6", "300px", "ShowMailDetailSimple.aspx");
        
        var wmTbox;
        $(document).ready(function() {
            wmTbox = new WaterMarkTextBox(document.getElementById("txtSearch"), "输入关键字...");
            wmTbox.init();
        });
    </script>
    <style type="text/css">
    #gv td, #gv th
    {
        border: none;
        border: hidden !important;
    }
    .right
    {
        float: right;
    }
    </style>
    <script language="javascript" type="text/javascript">
        // Note: rowindex 可能不会代表当前的行号，因为有行添加删除或移动的话则不行
        function onRowStatusChanged(chk, rowIndex) {
            var tr = chk.parentNode.parentNode;
            if (chk.checked) {
                tr.style.backgroundColor = "#d6e2f6";
            }
            else {
                tr.style.backgroundColor = "";
            }
            
            msgInfo("test: " + rowIndex.toString());
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="titleText">
        站内消息 <span style="font-size: 12px; font-weight: normal;">(共20个记录)</span>
    </div>
    <div class="btdiv2">
        <anthem:Button ID="Button1" runat="server" CssClass="input00" Text="刷新" />
        <anthem:Button ID="Button6" runat="server" CssClass="input00" Text="删除" />
        <asp:Button ID="Button9" runat="server" CssClass="input00" Text="转发"
            OnClientClick="window.location.href='EditIntroducer.aspx?op=add'; return false;" />
        &nbsp;
        <asp:DropDownList ID="DropDownList1" runat="server">
            <asp:ListItem>标记为...</asp:ListItem>
            <asp:ListItem>未读</asp:ListItem>
            <asp:ListItem>已读</asp:ListItem>
            <asp:ListItem>待办事件</asp:ListItem>
            <asp:ListItem>已转发</asp:ListItem>
            <asp:ListItem>未转发</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="txtSearch" runat="server" Width="157px" CssClass="conint"></asp:TextBox>
        <div class="right">
            <webdiyer:AspNetPager ID="pager" runat="server" CssClass="pager" CustomInfoHTML="%CurrentPageIndex%/%PageCount%页&nbsp;&nbsp;"
                CustomInfoSectionWidth="12%" CustomInfoTextAlign="Right" 
                FirstPageText="首页" LastPageText="末页"
                LayoutType="Table" NextPageText="下一页" NumericButtonCount="6" NumericButtonTextFormatString="[{0}]"
                PageSize="20" PagingButtonSpacing="2px" PrevPageText="上一页" ShowCustomInfoSection="Left"
                SubmitButtonText="转到" onpagechanged="pager_PageChanged">
            </webdiyer:AspNetPager>
        </div>
    </div>
    <div class="tableContaner" id="divMain">
        <asp:GridView ID="gv" runat="server" CssClass="table2" AutoGenerateColumns="False">
            <Columns>
                <asp:TemplateField HeaderText="" HeaderStyle-Width="20px" HeaderStyle-HorizontalAlign="Left">
                    <HeaderTemplate>
                        <input type="checkbox" onclick="javascript:checkAll(this);" />
                    </HeaderTemplate>
                    <ItemTemplate>
                    <input type="checkbox" onclick='javascript:onRowStatusChanged(this, <%# Container.DataItemIndex %>);' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="发送者" HeaderStyle-Width="100px" />
                <asp:BoundField HeaderText="主题" />
                <asp:BoundField HeaderText="时间" HeaderStyle-Width="100px" />
                <asp:BoundField HeaderText="到期时间" HeaderStyle-Width="100px" />
                <asp:TemplateField HeaderText="" HeaderStyle-Width="50px">
                    <ItemTemplate>
                        <a href="javascript:void(0)" title="查看详细信息"
                            onclick="javascript:showDetail(this,12);">详细</a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle CssClass="listhead" />
            <AlternatingRowStyle CssClass="alt" />
        </asp:GridView>
    </div>
    <div class="btdiv2">
            <anthem:Button ID="Button3" runat="server" CssClass="input00" Text="刷新" />
            <anthem:Button ID="Button4" runat="server" CssClass="input00" Text="删除" />
        <div class="right">
            <webdiyer:AspNetPager ID="pager2" runat="server" CssClass="pager" CustomInfoHTML="%CurrentPageIndex%/%PageCount%页&nbsp;&nbsp;"
                CustomInfoSectionWidth="12%" CustomInfoTextAlign="Right" 
                FirstPageText="首页" LastPageText="末页"
                LayoutType="Table" NextPageText="下一页" NumericButtonCount="6" NumericButtonTextFormatString="[{0}]"
                PageSize="20" PagingButtonSpacing="2px" PrevPageText="上一页" ShowCustomInfoSection="Left"
                SubmitButtonText="转到" onpagechanged="pager2_PageChanged">
            </webdiyer:AspNetPager>
        </div>
    </div>
    </form>
</body>
</html>
